<?php


namespace App\Http\Controllers\android\model;


use Illuminate\Support\Facades\DB;

class AppUpdateModel
{
    public static function queryNewest($where,$field){
        return DB::table('t_app_update')
            ->where($where)
            ->orderByDesc('app_version_code')
            ->first($field);
    }

    public static function queryGet($where,$field){
        return DB::table('t_app_update')->where($where)->distinct('app_package')->get($field);
    }
}